<?php
if ($ticket_parent!=1) {
	header('Location: class_manager.php');
	exit;
}

if (isset($_GET["admin_page"])){
	$admin_page=$_GET["admin_page"];
}
else {
	$admin_page="class_lists";
}

?>
<div id="admin_bar">
<ul>
	<li class="left <?php if($admin_page=="class_lists") echo "active";?>"><a title="Class Lists"
		href="class_manager.php?page=admin&admin_page=class_lists">Class Lists</a></li>
	<li class="left <?php if($admin_page=="add_class") echo "active";?>"><a title="Add Class"
		href="class_manager.php?page=admin&admin_page=add_class">Add Class</a></li>
	<li class="left <?php if($admin_page=="edit_class") echo "active";?>"><a title="Edit Class"
		href="class_manager.php?page=admin&admin_page=edit_class">Edit Class</a></li>
	<li class="left <?php if($admin_page=="manage_modules") echo "active";?>"><a title="Manage Modules"
		href="class_manager.php?page=admin&admin_page=manage_modules">Manage Modules</a></li>
</ul>
</div>
<?php require "messages.php"?>
<?php require $admin_page.".php"?>